import java.util.Random;

public class text4 {
    public static void main(String[] args) {
        int[] arr = new int[10];
        int sum = 0;
        int count = 0;
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = r.nextInt(100) + 1;
            System.out.println(arr[i]);

        }
        for (int j : arr) {
            sum = sum + j;
            if (j > arr.length)
            {
                count++;
            }
        }
        System.out.println("所有数的和"+sum);
        System.out.println("所有数的平均数"+sum/arr.length);
        System.out.println("大于平均数的个数为"+count);

    }
}
